package cn.org.rookie.jeesdp;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LHT
 * @date 2021-11-23 19:59
 */

@SpringBootApplication
public class Admin {


    public static void main(String[] args) {
        SpringApplication.run(Admin.class, args);
    }


    @RestController
    @RefreshScope
    public static class IndexController {
        @Value("${demo}")
        private String demo;
    }

}
